Skip to main content

get

Type

command

Summary

Places the value of an expression in the it variable.

Syntax

get <expression>

Description

Use the get command to fetch the value of an expression.

The get command is a shorthand way of writing the following statement:

    put expression into it
note

When specifying URLs for iOS or Android, you must use the appropriate form that conforms to RFC 1738. Ensure that you URLEncode any username and password fields appropriately for FTP URLs. The Android and iOS engines do not support 'libUrl', which would allow characters such as @ in the username.

Parameters

NameTypeDescription

expression

Any expression that yields a value.

Examples

get the colors of button 1
get 2 * 25 * pi -- gets circumference of circle with radius 25
get message -- evaluates expression in message box
get URL "https://www.livecode.com"

keyword: it

command: post, unload, put, libURLSetFTPStopTime, load, set, libURLSetLogField

control structure: getProp

function: value, URLEncode

glossary: expression, command, variable

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?